<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
	<title>read</title>
</head>
<body>
	<h3><?php echo ($list[0]["name"]); ?> <?php echo ($stu_id); ?> </h3>
	<form action="__URL__/read/stu_id/<?php echo ($stu_id); ?>" method='post'>
		年级：<select name="grade">
				<option value="0">全部</option>
				<option value="1">一年级</option>
				<option value="2">二年级</option>
				<option value="3">三年级</option>
				<option value="4">四年级</option>
				<option value="5">五年级</option>
				<option value="6">六年级</option>
			  </select>
		学期：<select name="term">
				<option value="0">全部</option>
				<option value="1">上学期</option>
				<option value="2">下学期</option>
			  </select>
		科目：<select name="subject">
				<option value="0">全部</option>
				<option value="1">语文</option>
				<option value="2">数学</option>
				<option value="3">英语</option>
			  </select>
			<input type="submit" value="submit">
	</form>
    <table border='1' width='500' >
        <tr>
            <td>年级</td>
            <td>学期</td>
            <td>科目</td>
            <td>分数</td>
        </tr>
	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($vo["grades"]); ?></td>
            <td><?php echo ($vo["terms"]); ?></td>
            <td><?php echo ($vo["subjects"]); ?></td>
            <td><?php echo ($vo["score"]); ?></td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        <td></td>
        <td></td>
        <td><a href='__URL__/add/stu_id/<?php echo ($stu_id); ?>' > 添加 </a></td>
        <td><a href='__URL__/update/stu_id/<?php echo ($stu_id); ?>' > 修改 </a></td>
    </table>
	<br/>
	<?php echo ($err_data); ?>
	<br/>
	<br/>


</body>
</html>